---
import type { HTMLAttributes } from 'astro/types'

type Props = HTMLAttributes<'footer'>

const { ...attrs } = Astro.props

const year = new Date().getFullYear()

const { website } = Astro.locals.config
---

<footer font-bold text-3 un-flex="~ col gap-1" un-lg="gap-3.5" {...attrs}>
    <p>
	© {year}
	<a target="_blank" href={website} rel="noopener noreferrer">傲来操作系统训练营</a>
    </p>
    <p>
	除非特殊声明，均使用
	<a
	    href="https://creativecommons.org/licenses/by-nc/4.0/?ref=chooser-v1"
	    target="_blank"
	    rel="license noopener noreferrer"
	    style="display: inline-block"
	>
	    CC BY-NC 4.0
	</a>
	授权
    </p>
</footer>
